package com.oazon.system.broadcast;

import com.oazon.moco.link.core.LinkSDK;
import com.oazon.moco.link.core.source.LinkEventSource;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;

public abstract class ShutDownReceive extends BroadcastReceiver {

	public ShutDownReceive(Context context) {
		IntentFilter filter = new IntentFilter(
				"android.intent.action.ACTION_SHUTDOWN");
		context.registerReceiver(this, filter);
	}

	@Override
	public void onReceive(Context context, Intent intent) {
		//LinkSDK.getInstance().isShutdone(new LinkEventSource());
		//TODO 关机动画
	}

	public abstract void onReceiveShoutDown(Context context);
}
